﻿using WinRTFramework.Common;
using WinRTFramework.DefaultImplementations;

namespace SearchContract.ViewModels
{
    class MainPageViewModel : DefaultPageViewModel
    {
        private DelegateCommand _defaultCommand;
        public DelegateCommand NavigateToDefaultPageCommand { get
        {
            return
                _defaultCommand =
                _defaultCommand ??
                new DelegateCommand(() => NavigationService.Navigate<DefaultSearchablePageViewModel>());
        } }

        private DelegateCommand _inferiorCommand;
        public DelegateCommand NavigateToInferiorPageCommand { get
        {
            return
                _inferiorCommand =
                _inferiorCommand ??
                new DelegateCommand(() => NavigationService.Navigate<InferiorSearchablePageViewModel>());
        } }
    }
}
